<@page.html title="库存历史查询">
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<script type="text/javascript" src="${_appPath!}/js/DatePicker.js"></script>
</script>
  <div class="search">
    <form id="fm_query" action="_list">
      <dl>
        <dt>门店</dt>
        <dd><script>shopsel('shopCode');</script></dd>
        <dt>商品</dt>
        <dd><input type="text" id="productCode" name="productCode" value="" style="width:90px;" class="disable" readonly="readonly">
        	<input type="text" id="productName" name="productName" value="" style="width:90px;" class="disable" readonly="readonly">
            <input type="button" class="opwin" value="..." onclick="selectProduct();"/></dd>
        <dt>保存月份</dt>
        <dd><input type="text" name="savemonth" onclick="setmonth(this)" value="" readonly="readonly" size="8" maxlength="10"></dd>
        <dd class="button"><input type="button" value="查询" onclick="query();"></dd>
        <#if canExpt??><dd class="button"><input type="button" value="导出" onclick="expt();"></dd></#if>
      </dl>
    </form>
  </div>
  <div id="div_list"></div>
<script type="text/javascript">
query();
function selectProduct() {
  openWin("getProduct", 700, 400);
}

function addProduct(productInfo) {
    document.getElementById("productCode").value = productInfo.cells[0].innerHTML.replace(/<.+?>/gim,'');
    document.getElementById("productName").value = productInfo.cells[1].innerHTML.replace(/<.+?>/gim,'');
}
</script>
</@page.html>